memory: don't implicitly unpin for decrease-reservation
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2018 13:03:27 +0000 (14:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2018 13:03:27 +0000 (14:03 +0100)
commitd798a0952903db9d8ee0a580e03f214d2b49b7d7
tree56186d6d6b08d46cbcb4ee590606463e2ca3211f
parent156b29fca10fd25065fc501eb4b47cff931086f2
memory: don't implicitly unpin for decrease-reservation

It very likely was a mistake (copy-and-paste from domain cleanup code)
to implicitly unpin here: The caller should really unpin itself before
(or after, if they so wish) requesting the page to be removed.

This is XSA-252.

Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/memory.c